import org.junit.Before;
import org.junit.Test;

import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;

public class HotelTest {
    private Hotel hotel;

    @Before
    public void setUp(){
        hotel = new Hotel("Lakewood", 3, 110, 80, 90, 80);

    }

    @Test
    public void shouldReturnNameOfHotelAndRating(){
        assertThat(hotel.name(), is("Lakewood") );
        assertThat(hotel.rating(), is(3) );
    }

    @Test
    public void shouldReturnCorrectRatesForCustomers(){
        assertThat(hotel.rate("Regular", "weekday"), is(110));
        assertThat(hotel.rate("Reserved", "weekday"), is(80));
        assertThat(hotel.rate("Regular", "weekend"), is(90));
        assertThat(hotel.rate("Reserved", "weekend"), is(80));
    }
}

